﻿using System.Text;

namespace SDFL.Tools.WeatherLib
{
    public class WeatherSimpleInfo
    {

        /// <summary>城市</summary>
        public string city { get; set; }
        /// <summary>时间</summary>
        public string date_y { get; set; }
        /// <summary>农历时间</summary>
        public string date { get; set; }
        /// <summary>ID</summary>
        public string cityid { get; set; }
        /// <summary>温度</summary>
        public string temp1 { get; set; }

        public string temp2 { get; set; }
        public string temp3 { get; set; } 
        /// <summary>天气</summary>
        public string weather1 { get; set; }
        public string weather2 { get; set; }
        public string weather3 { get; set; }
        /// <summary>图片</summary>
        public string img1 { get; set; }
        public string img2 { get; set; }
        public string img3 { get; set; }
        public string img4 { get; set; }
        /// <summary>风</summary>
        public string wind1 { get; set; }
        public string wind2 { get; set; }
        /// <summary>穿衣简单指数</summary>
        public string index { get; set; }
        /// <summary>穿衣指数</summary>
        public string index_d { get; set; }
        /// <summary>紫外线简单指数</summary>
        public string index_uv { get; set; }
        /// <summary>洗车简单指数</summary>
        public string index_xc { get; set; }
        public string index_tr { get; set; }

        public override string ToString()
        {
            var sb = new StringBuilder();
            sb.AppendFormat("城市:{0}\r\n", this.city);
            sb.AppendFormat("时间:{0}\r\n", this.date_y);
            sb.AppendFormat("今天天气:{0}; ", this.weather1);
            sb.AppendFormat("温度:{0}\r\n", this.temp1);
            sb.AppendFormat("明天天气:{0}; ", this.weather2);
            sb.AppendFormat("温度:{0}\r\n", this.temp2);
            sb.AppendFormat("后天天气:{0}; ", this.weather3);
            sb.AppendFormat("温度:{0}\r\n", this.temp3);
            sb.AppendFormat("风:{0}\r\n", this.wind1);
            sb.AppendFormat("穿衣指数:({0})。{1}\r\n", this.index, this.index_d);
            sb.AppendFormat("紫外线指数:{0}\r\n", this.index_uv);
            sb.AppendFormat("洗车指数:{0}\r\n", this.index_xc);
            return sb.ToString();
        }
    
    }
}
